﻿using RootMotion.FinalIK;
using UnityEditor;
using UnityEngine;

namespace Yoozoo.Gameplay.Liberty.PlayerController.Demo.Editor
{
    [CustomEditor(typeof(CarInteractionDemo))]
    public class CarInteractionDemoEditor : UnityEditor.Editor
    {
        
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            
            CarInteractionDemo demo = target as CarInteractionDemo;

            if (GUILayout.Button("拉车门"))
            {
                demo.interactionSystem.StartInteraction(FullBodyBipedEffector.LeftHand, demo.carDoorObject, demo.interrupt);
            }
        }
    }
}